package com.yunhe.abnormal.repository.base;

import com.yunhe.abnormal.domain.base.AbnormalFormat;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AbnormalDetailFormatRepository extends Neo4jRepository<AbnormalFormat, Long> {

    @Query("start n=node({id}),m=node({pid}) create(m)-[:FORMAT_OF]->(n)")
    void bind(@Param("id") Long id, @Param("pid") Long pid);
}
